package patrol.mobile.com.mobilepatrol.activity.rong;


import android.content.Context;

import io.rong.push.PushType;
import io.rong.push.notification.PushMessageReceiver;
import io.rong.push.notification.PushNotificationMessage;

/**
 * Created by z on 2018/9/12.
 * Des:
 */

public class RongNotificationReceiver extends PushMessageReceiver {
    /**
     * 用来接收服务器发来的通知栏消息(消息到达客户端时触发)
     */
//    @Override
//    public boolean onNotificationMessageArrived(Context context, PushNotificationMessage pushNotificationMessage) {
//        return false;
//    }
//
//    /**
//     * 是在用户点击通知栏消息时触发 (注意:如果自定义了通知栏的展现，则不会触发)，默认 return false 。如果需要自定义点击通知时的跳转，return true 即可
//     */
//    @Override
//    public boolean onNotificationMessageClicked(Context context, PushNotificationMessage pushNotificationMessage) {
//        return false;
//    }

    @Override
    public boolean onNotificationMessageArrived(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage) {
        return false;
    }

    @Override
    public boolean onNotificationMessageClicked(Context context, PushType pushType, PushNotificationMessage pushNotificationMessage) {
        return false;
    }
}
